package leetcode.editor.week.week304;

import java.util.HashSet;
import java.util.Set;

public class Solution6132 {
    // https://leetcode.cn/problems/make-array-zero-by-subtracting-equal-amounts/
    public int minimumOperations(int[] nums) {
        Set<Integer> set = new HashSet();
        for (Integer num : nums) {
            if (num > 0) {
                set.add(num);
            }
        }

        return set.size();
    }
}
